#include "bsp.h"
#include "Arduino.h"
#include "bsp_flash.h"
#include "bsp_key.h"

#include "oled.h"

void bspLedInit(){
    pinMode(2, OUTPUT);
    digitalWrite(2, HIGH);

    pinMode(16, OUTPUT);
    pinMode(17, OUTPUT);
}

void bspInit(void)
{
    bspKeyInit();
    bspLedInit();
    bspFlashInit();
    Serial.begin(115200);
    Serial1.begin(115200, SERIAL_8N1, 23, 22,0,5);
    //Serial2.begin(115200, SERIAL_8N1, 16, 17,0,5);
    Serial.printf("AAAAAAA");

   // OLED_Init();
    //OLED_Printf(2,3,"abc");

}
